import { locations } from "../../../gpu/locations";
export const Camera = /*wgsl*/ `
#if ~{def.camera}
struct Camera{
  vp:mat4x4<f32>,
  vpInvert:mat4x4<f32>,
  view:mat4x4<f32>,
  project:mat4x4<f32>,
  rotation:mat4x4<f32>,
  invert:mat4x4<f32>,
  position:vec3<f32>,
  dist:f32,
  viewport:vec2<f32>,
  near:f32,
  far:f32,
  at:vec3<f32>
}
@group(${locations.camera[0]}) @binding(${locations.camera[1]}) var<uniform> camera : Camera;
#endif 
`;